﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PermissionBase.Core.Domain;
using PermissionBase.Core.Service;

public partial class Admin_Modules_UserMgr_UserInfoViewer : System.Web.UI.Page
{
    private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(Admin_Modules_UserMgr_UserInfoViewer));

    protected void Page_Load(object sender, EventArgs e)
    {
        
        Response.Cache.SetCacheability(HttpCacheability.NoCache);

        try
        {
            System.Decimal id = Convert.ToDecimal(Request.QueryString["id"]);
            if (id != null)
            {
                User u = CommonSrv.LoadObjectById(typeof(User), id) as User;

                txtUserLoginId.Value = u.Emp_code;
                txtUserName.Value = u.Emp_name;
            }
        }
        catch (Exception ex)
        {
            ClientScript.RegisterClientScriptBlock(this.GetType(), "error", "<script type=\"text/javascript\">window.returnValue = false;window.close();</script>");
            log.Error(null, ex);
        }
    }
}
